package com.ty.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;
import java.time.LocalTime;

@Document(collection = "212_danmu")
@Data
@Accessors(chain = true)
public class Danmu {
    @Id
    private String id;
    private String message;
    private Integer videoId;
    private Integer userId;
    private String nickName;
    private String avater;
    private int time;
    private LocalDateTime createTime;
}
